package com.example.vehiclefabric.DTO;

/**
 * @name: ChargingStationDTO
 * @description: 定义充电桩智能合约中的充电桩信息。
 * @author: Lulu Zhao
 **/
public class ChargingStationDTO {
    private String chargingStationID;
    private String location;
    private String brand;
    private String provider;
    private String state;

    /**
     * @name: ChargingStationDTO
     * @description: 有参构造函数。
     * @params: [chargingStationID, location, brand, provider, state]
     * @return:
     * @author: Lulu Zhao
     */
    public ChargingStationDTO(String chargingStationID, String location, String brand, String provider, String state) {
        this.chargingStationID = chargingStationID;
        this.location = location;
        this.brand = brand;
        this.provider = provider;
        this.state = state;
    }

    /**
     * @name: getChargingStationID
     * @description: 获取充电桩ID。
     * @params: []
     * @return: java.lang.String
     * @author: Lulu Zhao
     */
    public String getChargingStationID() {
        return chargingStationID;
    }

    /**
     * @name: setChargingStationID
     * @description: 设置充电桩ID。
     * @params: [chargingStationID]
     * @return: void
     * @author: Lulu Zhao
     */
    public void setChargingStationID(String chargingStationID) {
        this.chargingStationID = chargingStationID;
    }

    /**
     * @name: getLocation
     * @description: 获取充电桩位置。
     * @params: []
     * @return: java.lang.String
     * @author: Lulu Zhao
     */
    public String getLocation() {
        return location;
    }

    /**
     * @name: setLocation
     * @description: 设置充电桩位置。
     * @params: [location]
     * @return: void
     * @author: Lulu Zhao
     */
    public void setLocation(String location) {
        this.location = location;
    }

    /**
     * @name: getBrand
     * @description: 获取充电桩品牌。
     * @params: []
     * @return: java.lang.String
     * @author: Lulu Zhao
     */
    public String getBrand() {
        return brand;
    }

    /**
     * @name: setBrand
     * @description: 设置充电桩品牌。
     * @params: [brand]
     * @return: void
     * @author: Lulu Zhao
     */
    public void setBrand(String brand) {
        this.brand = brand;
    }

    /**
     * @name: getProvider
     * @description: 获取充电桩提供商。
     * @params: []
     * @return: java.lang.String
     * @author: Lulu Zhao
     */
    public String getProvider() {
        return provider;
    }

    /**
     * @name: setProvider
     * @description: 设置充电桩提供商。
     * @params: [provider]
     * @return: void
     * @author: Lulu Zhao
     */
    public void setProvider(String provider) {
        this.provider = provider;
    }

    /**
     * @name: getState
     * @description: 获取充电桩状态。
     * @params: []
     * @return: java.lang.String
     * @author: Lulu Zhao
     */
    public String getState() {
        return state;
    }

    /**
     * @name: setState
     * @description: 设置充电桩状态。
     * @params: [state]
     * @return: void
     * @author: Lulu Zhao
     */
    public void setState(String state) {
        this.state = state;
    }

    /**
     * @name: toString
     * @description: toString方法。
     * @params: []
     * @return: java.lang.String
     * @author: Lulu Zhao
     */
    @Override
    public String toString() {
        return "ChargingStationDTO{" +
                "ChargingStationID='" + chargingStationID + '\'' +
                ", Location='" + location + '\'' +
                ", Brand='" + brand + '\'' +
                ", Provider='" + provider + '\'' +
                ", State='" + state + '\'' +
                '}';
    }
}
